package com.bcxj.apidriver.controller;

import com.bcxj.apidriver.service.PointService;
import com.bcxj.internalcommon.dto.ApiDriverPointDTO;
import com.bcxj.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * ClassName: PointController
 * Package: com.bcxj.apidriver.controller
 * Description:
 *
 * @Author BCXJ
 * @Create 2024/11/2 23:10
 * @Version 1.0
 * @Since 1.0
 */
@RestController
@RequestMapping("/point")
public class PointController {

    @Autowired
    private PointService pointService;

    /**
     * 轨迹点的上传
     * @return
     */
    @PostMapping("/upload")
    public ResponseResult upload(@RequestBody ApiDriverPointDTO apiDriverPointDTO) {
        return pointService.upload(apiDriverPointDTO);
    }

}
